import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path:'/add',
      component:()=>import('@/views/Add.vue')
    },
    {
      path:'/show',
      component:()=>import('@/views/Show.vue')
    },
    {
      path:'/addHy',
      component:()=>import('@/views/AddHy.vue')
    },
     {
      path:'/showhy',
      component:()=>import('@/views/ShowHy.vue')
    },
    {
      path:'/xg',
      component:()=>import('@/views/XG.vue')
    },
    {
      path:'/addday',
      component:()=>import('@/views/CeShi/AddDay.vue')
    },
    {
      path:'/showday',
      component:()=>import('@/views/CeShi/ShowDay.vue')
    },
    {
      path:'/shopadd',
      component:()=>import('@/views/Shop/ShopAdd.vue')
    },
     {
      path:'/shopshow',
      component:()=>import('@/views/Shop/ShopShow.vue')
    },
    {
      path:'/shower',
      component:()=>import('@/views/CeShi/Shower.vue')
    },
    {
      path:'/houseradd',
      component:()=>import('@/views/Houser/HouserAdd.vue')
    },
    {
      path:'/showhouser',
      component:()=>import('@/views/Houser/ShowHouser.vue')
    },
    {
      path:'/fxadd',
      component:()=>import('@/views/FX/FXAdd.vue')
    },
     {
      path:'/fxshow',
      component:()=>import('@/views/FX/FXShow.vue')
    },
    {
      path:'/addshop',
      component:()=>import('@/views/Cs/Add.vue')
    },
    {
      path:'/showshoping',
      component:()=>import('@/views/Cs/Show.vue')
    },
    {
      path:'/login',
      component:()=>import('@/views/Yk/Login.vue')
    },
    {
      path:'/loginshow',
      component:()=>import('@/views/Yk/LoginShow.vue')
    },
    {
      path:'/loginadd',
      component:()=>import('@/views/Yk/LoginAdd.vue')
    },
    {
      path:'/addgl',
      component:()=>import('@/views/GLI/AddGL.vue')
    },
    {
      path:'/showgl',
      component:()=>import('@/views/GLI/ShowGL.vue')
    },
    {
      path:'/showmd',
      component:()=>import('@/views/GLI/ShowMD.vue')
    },
    {
      path:'/addwork',
      component:()=>import('@/views/Work/Addwork.vue')
    },
    {
      path:'/showwork',
      component:()=>import('@/views/Work/Showwork.vue')
    },
    {
      path:'/showjm',
      component:()=>import('@/views/Work/ShowJM.vue')
    },
    {
      path:'/xgjm',
      component:()=>import('@/views/Work/XGJM.vue')
    },
  ],
})

export default router
